<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<head>
<meta charset="UTF-8">
<title>发表文章</title>
	</head>
	<body>
	<%String path=request.getContextPath();%>
	<%String currentuser=request.getSession().getAttribute("CURRENTUSER").toString(); %>
		<table>
			<tr>
				<td><%=currentuser %></td>		
			</tr>
			<tr>
				<td width="450"></td>
				<td>                                           
					<input type="button" value="返回首页" onclick="window.location.href='main.jsp'" />
				</td>
			</tr>
		</table>
		<form action="<%=path%>/publish" method="post">
		<table>
			<tr>
				<td width="80">文章类型：</td>
				<td><input type="radio" name="essaytype" 
				    value="1" id="shortphrase" checked="checked"/><label>短句</label></td>
				<td><input type="radio" name="essaytype" 
				    value="2" id="shortessay" /><label>短文</label></td>
				<td><input type="radio" name="essaytype" 
				    value="3" id="prose" /><label>散文</label></td>
				<td><input type="radio" name="essaytype" 
				    value="4" id="poetry" /><label>诗歌</label></td>
				<td><input type="radio" name="essaytype" 
				    value="5" id="novel" /><label>小说</label></td>
				<td><input type="radio" name="essaytype" 
				    value="6" id="others" /><label>其他</label></td>	
			</tr>
		</table>
		<div >&nbsp;限定字数：？？？ 字</div>
		<table>
			<tr>
				<td width="80">谁可以看：</td>
				<td><input type="radio" name="essayprivacy" 
					value="1" id="open" checked="checked"/><label>大众</label></td>
				<td><input type="radio" name="essayprivacy" 
					value="2" id="friends" /><label>朋友</label></td>
				<td><input type="radio" name="essayprivacy" 
					value="3" id="privacy" /><label>私密</label></td>
			</tr>
		</table>
		<table>
			<tr>
				<td width="80">标题：</td>
				<td><input type="text" name="essaytitle"></input></td>
			</tr>
		</table>
		<table>
			<tr>
				<td width="80">正文：</td>
				<td><textarea name="essaybody"></textarea></td>
			</tr>
			<tr>
				<td colspan="2" align="right">
					<input type="button" name="clearall" value="清除正文">
					<input type="submit" name="publish" value="发表文章">
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>